var all_check = document.getElementById('all-check');
var filter_checks = document.getElementsByClassName('filter-checkbox');
var allLen = filter_checks.length;
// 全选
all_check.addEventListener('click', () => {
    for (let i = 0; i < allLen; i++) {
        filter_checks[i].checked = all_check.checked;
    }
})
// 半选反选
var select = 0;
for (let i = 0; i < allLen; i++) {
    filter_checks[i].addEventListener('click', () => {
        if (filter_checks[i].checked) {
            select++;
        } else {
            select--;
        }
        if (select < allLen) {
            all_check.checked = false;
            all_check.indeterminate = true;
        } else {
            all_check.checked = true;
            all_check.indeterminate = false;
        }
    })
}
// 搜索
